package cn.ssj.service.impl;

import cn.ssj.dao.ActivityDao;
import cn.ssj.entity.Activity;
import cn.ssj.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * Created by Administrator on 2017/9/4 0004.
 */
@Service
public class ActivityServiceImpl extends BaseServiceImpl<Activity,Integer> implements ActivityService {
    @Autowired
    private ActivityDao dao;

    @Transactional
    public Activity insert(Activity entity) {
        return super.insert(entity);
    }
    @Transactional
    public Activity update(Activity entity) {
        return super.update(entity);
    }
    @Transactional
    public boolean delete(Integer id) {
       return super.delete(id);
    }
}
